<template>
    <div class='box'>
        <div class='hua' v-for='(item,index) in arr' :key='index' v-show='id==item.ID'>

        </div>
    </div>
</template>
<script>
import axios from "axios";
export default {
  data() {
    return {
      arr: [],
      id: ""
    };
  },
  created() {
    this.id = this.$route.params.id;
    axios
      .get("/api/menu/silderPage")
      .then(res => {
        this.arr = res.data;
      })
      .catch(err => {
        console.log(err);
      });
  }
};
</script>
<style scoped lang='scss'>
</style>